//
//  GQHomeConcernController.m
//  GuQu
//
//  Created by HELIUM STAR on 15/5/8.
//  Copyright (c) 2015年 HELIUM STAR. All rights reserved.
//

#import "GQHomeConcernController.h"
#import "GQHomeDetailController.h"
#import "GQHomeViewCell.h"
#import "GQToolLocation.h"
#import "GQTabBar.h"


@interface GQHomeConcernController ()

@end

@implementation GQHomeConcernController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tableView.showsVerticalScrollIndicator = NO;

}

#pragma mark - UITableView的代理

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 5;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    GQHomeViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kFlag];
    
    if (cell == nil) {
        cell = [[GQHomeViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:kFlag];
    }
//    cell.delegate = self;
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    GQHomeDetailController *GQHDC = [[GQHomeDetailController alloc] init];
    GQHDC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:GQHDC animated:YES];
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 720;
}

//- (void)GQHomeViewCellCommentBtnDidClick
//{
//    [GQTabBar sharedGQTabBar].hidden = YES;
//    [self setUpKeyBoardTool];
//}
//
//- (void)setUpKeyBoardTool
//{
//    CGFloat height = 40;
//    UIView *toolView = [[UIView alloc] initWithFrame:CGRectMake(0, self.view.height - height, self.view.width, height)];
//    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
//    btn.x = 10;
//    btn.width = 25;
//    btn.height = 25;
//    btn.y = (toolView.height - btn.width) / 2;
//    [btn setImage:[UIImage imageNamed:@"home_praise"] forState:UIControlStateNormal];
//    [btn setImage:[UIImage imageNamed:@"home_praised"] forState:UIControlStateSelected];
//    [toolView addSubview:btn];
//    
//    UITextField *textField = [[UITextField alloc] init];
//    textField.x = CGRectGetMaxX(btn.frame);
//    textField.width = self.view.width - 45 * 2;
//    textField.height = 25;
//    textField.y = (toolView.height - textField.height) / 2;
//    textField.font = [UIFont systemFontOfSize:12];
//    textField.placeholder = @"写评论";
//    [toolView addSubview:textField];
//    
//    UIButton *sendBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    sendBtn.x = self.view.width - 45;
//    sendBtn.width = 45;
//    sendBtn.height = 25;
//    sendBtn.y = (toolView.height - 25) / 2;
//    [sendBtn setTitle:@"发送" forState:UIControlStateNormal];
//    [sendBtn setTitleColor:[UIColor colorWithRed:76/255.0 green:188/255.0 blue:178/255.0 alpha:1.0] forState:UIControlStateNormal];
//    [toolView addSubview:sendBtn];
//    
//}

@end
